#include "GMSetID.h"
#include "Client.h"

void GMSetID::WriteToSckMsg( Networking::SockMsg* sm )
{
    sm->WriteInt(m_id);
}

bool GMSetID::Execute()
{
    OUT_STRING("Setting Client ID: " << m_id);
    TheClient::Instance()->SetID(m_id);
    return true;
}

bool GMSetID::ReadFromSckMsg( Networking::SockMsg* sm )
{
    m_id = -1;
    return sm->ReadInt(&m_id);
}
